<!DOCTYPE>
<html>

<head>
<meta charset="utf-8">
<title>Title</title>
<style>
    h1{
        background-color: #f4645f;
        color: #fff;
        padding: 1em;
        text-align: center;
    }
</style>
</head>
<body>
    <h1 id="h1"><?php echo '你好，php!';?></h1>
    <script>
        var h1Element = document.getElementById('h1')
        h1Element.onclick = function () {
            alert('该页面由学院君通过php+html')
        }
    </script>
</body>
</html>